from fastapi import APIRouter
from services.login import user_login
from models.request_model import LoginRequest

router = APIRouter()

@router.post("/login")
async def login(body: LoginRequest) -> dict:
 return await user_login(body.user, body.password)

